@import "./reset.scss";
// @import "/libs/index_font/iconfont.css";
// 模块一 | 标题头部
$width: 1263px 8px 387px;
$height: 548px 8px 387px;
$margin-top: 100px;
$color: #000 #fff #999;
$font-size: 14px;
$line-height: 16px;
$border-radius: 50%;
// 版心
.content {
  width: nth($width, 1);
  margin: 0 auto;
}
header {
  height: 138px;
  background-color: nth($color, 1);

  .title {
    height: 78px;
    padding: 0 20px;
    h1 {
      height: 78px;
      text-align: center;
      a {
        @extend h1;
        img {
          width: 153px;
          height: 38px;
          margin: 30px 0 0 0;
        }
      }
    }
  }
  .nav {
    height: 50px;
    margin: 10px 0 0;
    padding: 0 78px 0 58px;
    &-left {
      height: 50px;
      float: left;
      li {
        @extend .nav-left;
        a {
          color: nth($color, 2);
          padding: 0 17px;
          &:hover {
            text-decoration: none;
          }
          span {
            height: 16px;
            line-height: 50px;
            font-size: nth($font-size, 1);
            .tag {
              border-top-left-radius: 8px;
              border-bottom-right-radius: 8px;
              font-size: 12px;
              transform: scale(0.83333333, 0.83333333);
              line-height: 13px;
              height: 15px;
              display: inline-block;
              padding: 1.5px 4px 0;
              margin: -12px -3px 0 1px;
              vertical-align: middle;
              color: nth($color, 2);
              background-color: #d51b51;
            }
          }
        }
      }
    }
    &-right {
      width: 103px;
      height: 48px;
      float: right;
      cursor: pointer;
      > div {
        width: 22px;
        float: left;
        height: 48px;
        i {
          display: block;
          font-weight: 600;
          color: nth($color, 2);
          font-size: 21px;
          line-height: 45px;
        }
      }
      .search {
        position: relative;
        &:hover .header_search {
          display: block;
          transition: all 1s linear;
        }

        .header_search {
          position: absolute;
          width: 450px;
          height: 100px;
          z-index: 2;
          right: -50px;
          background-color: #fff;
          display: none;
          transition: all 1s linear;
          .header_keyword {
            margin: 0 auto;
            width: 350px;
            height: 30px;
            // text-align: center;
            background-color: #fff;
            border: 0;
            border-bottom: 4px solid #000;
            position: absolute;
            z-index: 2;
            top: 40%;
            left: 10%;
          }
          .icon-search {
            position: absolute;
            right: 60px;
            top: 30%;
            z-index: 2;
          }
        }
      }
      .cart {
        margin-left: 14px;
      }
      .login {
        margin-left: 14px;
        position: relative;
        &:hover .login-select {
          display: block;
          transition: all 1s linear;
        }
        .login-select{
            position: absolute;
            width: 300px;
            height: 100px;
            z-index: 2;
            right: 0;
            background-color: #fff;
            display: none;
            transition: all 1s linear;
            text-align: center;
            padding-top: 30px;
            font-size: 14px;
            font-weight: normal;
            line-height: 30px;
            .hide{
              display:none;
            }
            a{
            color: #000;
            }
        }
      }
    }
  }
}
